/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package sa_prakt1.bl.services.factory;

import sa_prakt1.utils.Persistenz;
import sa_prakt1.bl.services.impl.ejb.EjbSamCommCreator;
import sa_prakt1.bl.services.impl.standard.DefaultSamCommCreator;
import sa_prakt1.bl.services.interfaces.SamCommCreator;

/**
 *
 * @author Andreas
 */
public class SamCommCreatorFactory {

    public SamCommCreatorFactory() {
    }

    static public SamCommCreator getCreator(Persistenz type) {
        switch (type) {
            case DEFAULT:
                return DefaultSamCommCreator.getInstance();
            case EJB:
                return EjbSamCommCreator.getInstance();
            default:
                return null;
        }

    }
}
